FlashView

A custom WebView subclass designed to display Adobe Flash (SWF) content.

FlashView configures a WebView with the necessary settings to enable Flash plugin support (where available on the device and Android version) and loads an HTML container that then loads the specified SWF file. It handles passing FlashVars to the SWF and facilitates JavaScript communication for control.

This view implements RevelControl for integration into a broader playback system and OnCommandListener to receive commands that can be relayed to the Flash content via JavaScript.

**Note:** Adobe Flash Player is no longer supported on modern Android versions and has been deprecated. The functionality of this view is highly dependent on the device having a compatible Flash Player plugin installed, which is increasingly rare. This view is likely intended for legacy systems or specific environments where Flash support is still a requirement and available.

See also

Constructors

Link copied to clipboard
constructor(context: Context, module: Module)
Constructs a new FlashView.

Functions

Link copied to clipboard
open fun dispose()
Disposes of the FlashView and its resources.
Link copied to clipboard
open fun getName(): String
Gets the unique name assigned to this control.
Link copied to clipboard
open fun getOptions(): Iterator<out Option>
Gets an iterator over the configuration s for this control.
Link copied to clipboard
open fun getPlaylist(): Playlist
Gets the associated with this control, if any.
Link copied to clipboard
open fun getType(): ModuleType
Gets the type of the underlying module or content associated with this control.
Link copied to clipboard
open fun getZIndex(): Int
Gets the Z-index (stacking order) of this control.
Link copied to clipboard
open fun initialize(module: Module)
Initializes the control with its associated module context.
Link copied to clipboard
open fun isAutoStart(): Boolean
Checks if this control is configured to start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun isStarted(): Boolean
Checks if the control is currently in a started or active operational state.
Link copied to clipboard
open fun onCommand(name: String, value: String)
Invoked when a command is received by a component this listener is registered with.
Link copied to clipboard
open fun setAutoStart(flag: Boolean)
Sets whether this control should start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun start()
Starts or resumes the active operation of this control.
Link copied to clipboard
open fun stop()
Stops or pauses the active operation of this control.